﻿// <copyright file="MainForm.cs" company="Beuth Hochschule für Technik">
// Breakdown - Configure your Windows 7 Firewall
// Copyright (C) 2009 Stefan "dersteps@gmail.com" Matyba
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; 
// either version 3 of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
// </copyright>
// <author>Stefan Matyba</author>
// <email>dersteps@gmail.com</email>
// <date>2009-10-18</date>
// <summary>Main Form of Breakdown</summary>

namespace Breakdown
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Globalization; 
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Breakdown.Aspects;
    using Breakdown.Logic;
    using Ninject.Core;
    using NLog;
    using System.IO;

    /// <summary>
    /// Main Form of Breakdown, contains the GUI 
    /// </summary>
    public partial class MainForm : Form
    {
        /// <summary>
        /// Initializes a new instance of the MainForm class
        /// </summary>
        public MainForm()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Handles the Load-event of MainForm
        /// </summary>
        /// <param name="sender">Source of the event</param>
        /// <param name="e">Empty event arguments</param>
        [Logged]
        private void MainForm_Load(object sender, EventArgs e)
        {
            // Starting
            FirewallPolicy policy = new FirewallPolicy();
            ARule rule = policy.Create();
            rule.Description = "Simple rule";
            rule.Name = "Test";
        }
    }
}
